<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Chucdanh_model extends CI_Model {
	public $table = 'chucdanh';

	function getChucDanh(){
		$query = $this->db->select('*')->from($this->table)->where('del_flg', 0)->get();
		$results = $query->result();
		$listChucDanh = array();
		foreach($results as $k => $v ){
			$listChucDanh[$v->id] = $v->name;
		}
		return $listChucDanh;
	}
}